C code for PEGetMargins and PESetMargins

The following code demonstrates how to use the PEGetMargins and PESetMargins functions:

PEGetMargins

short        left,
        right,
        top,
        bottom;
if (!PEGetMargins(Job, &left, &right, &top, &bottom)){
    // Handle error
}

PESetMargins

short        left,
        right,
        top,
        bottom;
left = 1440;            // in twips
right = 1440;            // in twips
top = PE_SM_DEFAULT;        // Default top margin
bottom = PE_SM_DEFAULT;    // Default bottom margin
if (!PESetMargins(Job, left, right, top, bottom)){
    // Handle error
}


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com